package org.androidpn.server.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.androidpn.server.dao.FriendGroupDao;
import org.androidpn.server.entity.Friend;
import org.androidpn.server.entity.FriendGroup;
import org.androidpn.server.service.FriendGroupService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * service 好友分组
 * 
 * @author 蔡琪
 * 
 */
@Service("friendGroupService")
public class FriendGroupServiceImpl extends BaseServiceImpl<FriendGroup, Long>
		implements FriendGroupService {

	@Resource(name = "friendGroupDao")
	private FriendGroupDao friendGroupDao;

	@Resource(name = "friendGroupDao")
	public void setBaseDao(FriendGroupDao friendGroupDao) {
		super.setBaseDao(friendGroupDao);
	}

	@Transactional(readOnly = true)
	public List<FriendGroup> getFriendGroupByRoleID(Long roleID) {
		return friendGroupDao.getFriendGroupByRoleID(roleID);
	}
}
